Use heredoc in tests
Use correct order in assertions

expected then actual
Revert "Use correct order in assertions"

This reverts commit ab7b7cc817124a477822ee07f1212bcaf5f01864.
Merge branch 'refactor-compressor'