test for final_this_rule was little difficult, but seems ok now