Validation works in the test case