Fixed retrieve document flow to return a document as a proper HTTP
response.

Corrected soaup UI test cases to use the correct test data.