write tests for NoteForm