Tests for special cases in integers sequence encoding/compression