Add interpreter test for method definition