Replace all deprecated usages in tests

This also means disabling one test.