test(search): Correct test condition (refs #4993)