Updated second equality test