change ranking function in test