Tests for warnings.