Some tests for optimizations