Add rule-fn tests.