Added tests for search.

Added travis build.