refactoring NoteServiceTest.cs