Add unit tests for NoteArchive