Small fixes
more tests and skip file permissions on non posix platforms