fixes #1
adds test for bug #1
0.0.2