add rule and test
Merge pull request #242 from mimmi20/issue-241

Fixes #241