Fix tests

Changes to make the tests run again.

On a side note, the VM only needs to start once. Tests could probably just check if it is running. The environment variables could then be reversed to force the recreation.