add rule and test
Merge pull request #410 from mimmi20/issue-409

Fixes #409