Added exception unit test