Add tests for useCurrentHost and disableGlobalOptions

Same question/remark on this test