Testing NDCG when ties occur in predictions