test directory permissions