- separate applyRules and readYaml for easier testing
- add more tests for "in" operator