add a check for broken equality implementation