fixing integration tests, and adding logging to integration tests.