Refactor DataValidationController's unit tests for maintainability.