Add unit tests for agent related commands

Added unit tests to cover:
    * agent show;
    * agent delete.

Change-Id: I98879cfe1bb1e7c085404aa73786a1eeaae1f40e
Closes-Bug: #1206110