Add test to verify that XmlRequests follow redirects.
check that data directory exists before copying directory.
Merge branch 'develop' of https://github.com/geonetwork/core-geonetwork into develop