Corrected logic of test.