add test for d1bdf2f (Class.getMethod bug)

I meant to include this in the original commit, but forgot.