Refactored api/routes unit tests.
Added api/trips/create unit tests
Added api/trips/get unit tests
Added api/trips/list unit tests
Added api/trips/update unit tests
Added unit test for api/trips/update.
Added unit test for api/trips/join.
Added unit test for api/trips/leave.
Refactored api/trips unit tests