ruleJS update + not working tests fixed