Improve getCalledMethod test