Added test for validates.