Format test cases