Add several of the geometry functions and tests.