Made Resource.resolveUrl public
Added test for public resolveUrl function