MAINT: Fix missed usage of deprecated tools.rank

Fix some missed usages to silence the test suite.