test with gzip or lz4 according the file type