Replace deprecated failIfEqual() with assertNotEqual()