Add Cartesian to Keplerian elements conversion function with test.