Expose and test creation of test.img