Tests for different compression algorithms.

Change-Id: Ia7a801ed1fbe915b127ea440195488c4cb7eda8f
Compress samples in groups of >=5000.

Change-Id: Idf1b4a3918b3719edb3290d00f201dd0588535a3