adding tests for apiHosts feature