Turn off warnings in tests
Make some global settings easier to change

Useful for tests.