Test case for "mix" optimizations.