Test compressing a directory.