Adding tests for trip model

* testing several tiny methods that combine into one big one