restored integration tests