Convert more unit tests, fix bug with note with id 0
Complete porting of unit tests to notesManager
Refactor notesCoherenceTools
Move unit tests to notesFactory. The big refactoring is now complete.