[DF-3965] improvements in jpeg lib test