Fixed a bug in the integration tests where context was shared an made them
unstable when run in parallell