Improve validate_data test coverage