Added unit tests for trip search method
Removed redundant method