test: Verify behaviour when yielding last key