Add tests for useCurrentHost and disableGlobalOptions

Fixed.