Adds unittests for compress flag