rule_engine.py testing