fix argument problem with optimization test