Edited test.

Let test check generated files are correct to load as JPEG.