adding tests to jpeg_utils.py