Add test and methods from class Rank