added retrieveDatastreamUris for better testability;added test for method