Added exception tests.