Disable logging of most warnings in tests