Is there a test case for this exception?