fix equality check in tests