Removes unused log variables in tests