Added test case where validate succeeds.