add test coverage for validations