fixup rule configuration asserts and add tests

- fixup bug in checkOption method (not it works)
- add tests for all rules

Fixes #23
Closes #44