test weightOfMethod