removing unnecessary variables in the test