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

Changed test config, added some improvements to error handling on tasks
and added more tests
I think these should be retrieved from os.environ