fix multiple harvesting of first record set
add test for record set
Merge branch 'jorol-devel'