remove some duplication in search specs