refactored controller error handling specs