restructure test case.