Refactor the validation assertions in all the controller tests.