Add tests for optimized expression evaluation.