added tests
Merge pull request #212 from mimmi20/issue-209

Fixes #209