Minor refactor in api tests.
Add api route for getting the results of user searches.