NoteServiceTest refactored