How about keeping the (shouldNotCompress = true) test at (Short.MaxValue.toInt + 1) as well as the 
 (shouldNotCompress = false) test at (Short.MaxValue.toInt - 1)

This way we test the limit from both directions.