added validator unit test