Updated PublishNote test case and added helper method. Also removed
references to profileId and userId properties