add exception unit test