The test should be considered when a child presents with prolonged gastrointestinal symptoms such as persistent diarrhea, abdominal pain, weight loss, or failure to thrive. It is also indicated if a child has a history of travel to areas where parasitic infections are common or if there is an outbreak in a community or daycare center.