added rule and test
Merge pull request #223 from mimmi20/issue-221

Fixes #221