Test trip_info function