use global debug handler
Added additional unit tests for key-based rules
additional debugging