tests: Check .jpg is allowed