add rule and test
fix test
Merge pull request #312 from mimmi20/issue-308

Fixes #308