Fixes tests for delete note API
Adds lots of tests for note API
Refactors note update to only update defined fields