added rules and test
Merge pull request #383 from mimmi20/issue-382

Fixes #382