NoteService duplicateNote implementation and test