tests for validations