test for unexpected error