Unit test for get_orbit.