add test showRank() code