Made get_max_ranked_rank more robust, works with a limiting list
Beefed up testing