add test
Merge pull request #299 from mimmi20/issue-298

Fixes #298