Preparation varies depending on the type of test. For a colonoscopy, patients typically need to follow a special diet and take a strong laxative to clear the bowel. For stool-based tests, patients usually need to collect a sample at home and send it to a lab.