Fixed testcases to run on windows.
Removed unused imports.