Corrected error-checking condition in test.