Fixed issue where exception would not be shown, added integration test to confirm that exception window is shown.