remove deprecation warning in tests.
remove var not used and not needed in test.