Removed unused local variables in tests.