MDL-49504 notes: Unit tests for core_notes_view_notes