Testing search logic