I am assuming that a warning produced is intentional, and that unintentional warnings should not be produced in tests