Fixing equality test