Add mixed optimization test