We should test that warnings are raised instead of ignoring them.