fixup rule configuration asserts and add tests

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

Fixes #23
Closes #44
Merge pull request #44 from zxqfox/hotfix/invalid-configuration-should-throws

fixup rule configuration asserts and add tests