better test for chmod
test for chown
truncate long filenames when using the COMMON format
test for clear method
test for common format
fix style