Fixed prompt test button search logic