diff --git a/rest-api/src/test/java/lcsb/mapviewer/api/projects/ProjectRestImplTest.java b/rest-api/src/test/java/lcsb/mapviewer/api/projects/ProjectRestImplTest.java
index 12a789d393bd4674120a9568735b6ac54bae29e6..647f931a7c64ed890c2f70928de0e95138648137 100644
--- a/rest-api/src/test/java/lcsb/mapviewer/api/projects/ProjectRestImplTest.java
+++ b/rest-api/src/test/java/lcsb/mapviewer/api/projects/ProjectRestImplTest.java
@@ -24,6 +24,7 @@ import lcsb.mapviewer.api.RestTestFunctions;
 import lcsb.mapviewer.common.exception.InvalidArgumentException;
 import lcsb.mapviewer.converter.graphics.PdfImageGenerator;
 import lcsb.mapviewer.converter.model.celldesigner.CellDesignerXmlParser;
+import lcsb.mapviewer.model.cache.FileEntry;
 import lcsb.mapviewer.model.map.MiriamType;
 import lcsb.mapviewer.model.map.model.Model;
 import lcsb.mapviewer.services.interfaces.IModelService;
@@ -50,12 +51,23 @@ public class ProjectRestImplTest extends RestTestFunctions {
 	}
 
 	@Test
-	public void testGetModelAsImage() throws Exception {
+	public void testGetModelAsImageForInvalidConverter() throws Exception {
 		try {
 			ProjectRestImpl projectRest = createMockProjectRest("testFiles/model/sample.xml");
 			projectRest.getModelAsImage(token.getId(), "sample", "0", "", "", "", "", "");
 			fail("Exception expected");
-		} catch (InvalidArgumentException e) {
+		} catch (Exception e) {
+			e.printStackTrace();
+			throw e;
+		}
+	}
+
+	@Test
+	public void testGetModelAsImage() throws Exception {
+		try {
+			ProjectRestImpl projectRest = createMockProjectRest("testFiles/model/sample.xml");
+			FileEntry result = projectRest.getModelAsImage(token.getId(), "sample", "0", PdfImageGenerator.class.getCanonicalName(), "", "", "", "");
+			assertNotNull(result);
 		} catch (Exception e) {
 			e.printStackTrace();
 			throw e;