added xRank
added more tests to rank.