Automated host provisioning

Moved finalizer code so that finalizer is added after test_host is created.

Also reworked on finalizer code because the host name is different at different stages of the test.