Fix a bug in vfs_test and make vfs_mem_[sc] work.