make addingurlthroughTheRestApi test pass
refactor, use the urlscollection class to add a url