Fix of global exception handler, unit & integrations tests for that