CRM-13234 - tests & standalone changes for fixing getfields on profile api

Note that this PR only covers the changes to the test & the output examples for the fixed behaviour. There is one core change which just adds a field.

I'm putting the actual api changes as a separate PR as I have had prior PRs with examples & test fixes get held up over the apparent size of the change (because examples change lots o f lines)