Add test for opening of an invalid image file