More optimization tests