Move globals to utils; add tests for geom/globals