Added the revert function.

Now the scripts are also reverting the additional VMs on which they are
running the tests.