Fix validator unit test