Fixing tests which were failing on running alone. Main root cause was the mongodb client connection error. On running all tests this mongodb connection establishes by some other test.