Added condition to tests in order to support JBPM image retrieval error