added integration tests for search, (error messages