validating in the test