clustering cost in test