Fix equality test