add unit test cases for list resource command.