Add unit test for deployment list subcommand

Change-Id: Ie32cb8f2b81626a22107e3e52afd5d6218bd125d
Merge "Add unit test for deployment list subcommand"