Merge "Make unit test tell if a method is a leaf."