Add test for non-existent read-write base directory

Also ensure syscall_linux.New() returns the correct type.