member function test case