io.directories: Add unit test for #890.