Suppress warnings in a test