fix addNote to pass test case