Restructure test case.