Refactored single controller error test so that can reuse error test code between single and multiple controllers.