Add support to tests and utilities for hosted instances