Fix rank filter tests