test for logic and began implementation of ParseRules