Added test for handler validate