SD-404 : Write more behave tests, especially for error flows

Updated behave tests, added support for tasks retries in case of errors