Fixed jpeg tests