Refactor compression tests into a single test.