test with one warning should be valid