Fixes to rules, testing for knowledgebase.