added the getList method and the testcase file