completed final tests for the rules engine