Add the addNote method with tests