Fix a test; jpeg thumbnails also have .jpg as extension...

How did this work at all before?