Improved TDD test case for executeSearch