test for non-dev error handling in controller