Code Refactory for VM Tests

1. adding env variable checks
2. remove unused variables and libs
3. adding retry for econreset and timeout errors
4. bug fixes
5. Removing inter-dependency between test files
6. Indentation
change the error text to be more meaningful something like 'Invalid docker port 3.2'