Disable deprecated warning when testing