add test case for Method reference