Added a quick unit test for exception catching