Added a test for publishing records with long notes
Clean up notes handling so saving records with long notes works as expected