Update get_image_file_negative test

*Updated get_image_file_negative test
-Moved check for allow_get_image_file to class level

Change-Id: Ie07cda0a8ffad01583e55ca2b05b0246e9e3a88b