debugging Lagrange Geometry and adding tests