fixed errors in integration tests