Remove unused variables in test code.