fixed integration tests, but they hang with a strange memory error