removes unused imports, unused variables and some other warnings from tests