Defined testcase with a block makes a wrong method_location.

Fix location after defined method.