Add unit test to test compression quality