Adding fallback in flowManager.runFlow.
Fixing some tests in bdes-repository.