fixed optimization test