Complete test for exception