add tests
Merge pull request #238 from mimmi20/issue-237

Fixes #237