Fixed minor bugs in integration tests.