Add code and unit test to support mock of LIST command