The note_install() function does this under the covers in a subdirectory of the .mortar-local directory. The caller of note_install() has to make sure the directory exists at run time.  This is the behaviour being tested.