Changed default sorting for assertions

Hope it improves speed!
More flexible check for images in solrdocument