I think this test needs to capture the PendingDeprecation warning?