Ignore deprecated warnings in tests