added test and fix https://github.com/neo4j/spatial/issues/64