Match \OC_Helper::linkToPublic() to new links and fit unittests