Rewrote API wrapper tests for modified functionality
  Moved DB calls and response formatting to search model
  TODO: modify search model tests
  TODO: refactor code