NXP-11045: when there is no path in the URL, do not set it to be '/' and
set the docRef to be null.
NXP-11045: fix tests