A few convenience methods for testing warning-based code
