Add getRank and TestRank