Add a test for the validation