Code Refactory for VM Tests

* adding env variable checks
* remove unused variables and libs
* adding retry for econreset and timeout errors
* bug fixes
* Removing inter-dependency between test files
* Indentation