Fix test to be resilient against different method ordering

The test was previously assuming that they would be found in source order -- that isn't necessarily the
case. So look them up by name instead.
Merge pull request #1 from davidstubbs/testbug

Fix test to be resilient against different method ordering