fixing up integration tests. almost there. errormessages are streamed but not received correctly