Perhaps a test for the collectData function, just to check that it iterates correctly on the record collection