Corrected the expected exceptions.