add RankingsSpec and fix Rankings bug