Remove main function from test case.