improved method for updating a note.
improved test that needs to wait for a note in the server.