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
variable spell check