add tests - closes #46