Use promises instead of callbacks in integration tests