Wrote integration test and fixed bug in the representation of errors (PROBCORE-557)