Test optimizations.