Fix missed API change in tests