Collect test cases.