Remove unnecessary attributes from test case.