added rules and test
fix platform keys
Merge pull request #240 from mimmi20/issue-234

Fixes #234