test-imagex: Fix test for duplicate image names