Test some optimizations