Added exception handling unit tests.