noop and searchMock could be declared at an outer level just in case we need to reuse them later when more tests are added