fix typo in function name
fix equality test