write test for validationController