Add unit test of LoadImage class