Fix TestGetInfo when there is more than one image in the test repository

See also #1089, #1072.