fix some tests by making pointer types properly comparable and hashable, instead of relying on identity