Forgotten add generated UUID to the returned UUID DOM Element.
Added test for the ResourceFactory.