fix businessrules.tests and fix deletion policy handling.