Added exception tests to the AddHandler unit test.