add test for ignoring warnings.