Corrected equality tests.