Replaced imgfail globabl variable with a TestData attribute.