Add tests of yield getters
Improve doc for merge to show use of key function