fixes #17 with a test
Merge pull request #18 from agrc/17

fixes #17 with a test