VM tests

Reduce code duplication in service management tests.
Add missing synchronous waiting of role to be ready.
Add testing of host_name attribute on RoleInstance.