test for chmod