ruleJS update + new tests