Added more compare optimization tests.