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

See also #1089, #1072.
Merge pull request #1092 from lopter/master

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