extracting method from test case