add new rule and test
Merge pull request #420 from mimmi20/issue-417

Fixes #417