Now using correct ids as reference if we are informing about a new note.
Added some tests.