test Rules.text2function