updated rank test