Test some optimizations.