Completed test for compareImages