Remove unused code from test.