added test for getRuleValidator method