[#858] move rulebase to end of run for testing