Added test for displaying exceptions in the Controller class