added rule and test
Merge pull request #168 from mimmi20/issue-166

Fixes #166