Those are nice integration tests, but if this will be used elsewhere, I'd prefer this itself to be unit tested.