A 40-year-old woman presents with intermittent diarrhea for 5-6 years, mostly pasty stools, occasionally watery stools, often accompanied by abdominal pain. In the past week, she has recurrent diarrhea and abdominal pain with mucoid bloody stools, temperature 38°C, and anal fissures with perianal abscess observed. The most significant test for diagnosis is: