Test geometry equality correctly.

TODO: Apply this to all the other tests.