Cover the changes with unit test
Cover the changes with unit test

Signed-off-by: Jean-Christophe Sirot <e2faf114d38661bb2d9e2dfc1c3dcaf1aba44d1c@docker.com>

thaJeztah/cli,cpuguy83/cli,docker/cli,cpuguy83/cli,docker/cli,thaJeztah/cli