Add test case for Objects as Methods