ack: improve test by performing a search