Restore geometry verification in unit test

I had removed this at one point during some refactoring.