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

Search by guid instead of _id