Add test for chmod.