Added exception handling tests.