Chmod and more tests