Add test for imagelinkvalidator's file method