add/change rule, add test
Merge pull request #465 from mimmi20/issue-461

Fixes #461