Fix publishing search test

so it doesn't fail when running all unit tests