Reorganize TestCaseRunner.