Using chmod in functional tests.