Fixed filesystem related tests. Really need to replace all this with
vfsStream instead of the namespace hacks