Test searchFactory.