tests for validate specifically