test weightOfRoute