optimizations should be run for output tests only. skip them in expectedAST tests