Fixed compare issue. Also updated unit test to reflect improved similar image performance