added support for foo.bar and foo.bar() style rules
Added new rules, and added a test case to support specifying tests for rules in rules.json
minor fixes to test cases