Tests for #9284, FUSE client capability handling

basename is a bit of a misleading var name here, it can be e.g. "subdir/foo", such that we create the dir and later open files in it.