merge RuleBase and KnowledgeBase
fix failing tests for KnowledgeBase and RuleBase merging