Use equality, not identity, for strings

This test usually passes on CPython due to small string interning.
Also supporting PyPy successfully highlighted the flaw.