Custom validatior in the test rewritten the right way.