diff --git a/dataset_download/sourceTest/java/ch/systemsx/cisd/openbis/datasetdownload/DatasetDownloadServletTest.java b/dataset_download/sourceTest/java/ch/systemsx/cisd/openbis/datasetdownload/DatasetDownloadServletTest.java
index 00f11583e61b566d4f47808c4b2bc570e1e7ff00..f5bbeadf32e2be7d0719fa659a5fcb73ccbb68e8 100644
--- a/dataset_download/sourceTest/java/ch/systemsx/cisd/openbis/datasetdownload/DatasetDownloadServletTest.java
+++ b/dataset_download/sourceTest/java/ch/systemsx/cisd/openbis/datasetdownload/DatasetDownloadServletTest.java
@@ -301,6 +301,7 @@ public class DatasetDownloadServletTest
         context.checking(new Expectations()
             {
                 {
+                    one(response).setContentType(DatasetDownloadServlet.BINARY_CONTENT_TYPE);
                     one(response).setContentLength(EXAMPLE_FILE_CONTENT.length());
                     one(response).setHeader("Content-Disposition",
                             "inline; filename=" + EXAMPLE_FILE_NAME);
@@ -411,7 +412,8 @@ public class DatasetDownloadServletTest
 
         DatasetDownloadServlet servlet = createServlet();
         servlet.doGet(request, response);
-        assertEquals("Request URI 'blabla' expected to start with '/download/'."
+        assertEquals("Error:" + OSUtilities.LINE_SEPARATOR
+                + "Request URI 'blabla' expected to start with '/download/'."
                 + OSUtilities.LINE_SEPARATOR, writer.toString());
         String logContent = getNormalizedLogContent();
         assertEquals("The following string does not start as expected: " + logContent, true,