Pass all tests when bypass optimizations is true. Remove unnecessary var.