Enable (minimal) optimization in tests