Rank now working with tests