Remove some dead variables in the tests.