added test class for NoteFactory