rule_engine.py TESTING