Fixed test for image file name format