These 4 lines simplify to

```ruby
LoadConfig.set_test_mode(!test.nil?)
```