Tests more sensible for exception type