add test
Merge pull request #289 from mimmi20/issue-288

Fixes #288