adding memory tests for rule engine