Bug 1054326: Initial attempt to submit Imagecompare test framework and test cases int...

...o the main branch
Why does this need to be sorted? We only check if something is in the list now, so I think this can be simplified and probably doesn't need to be a separate method.