add capability to suppress expected warnings in tests