Feature/add note manager test

move NoteManager class to note_manager.coffee
add sinon
add NoteManager class's test