added register by command line
fixed ut

Signed-off-by: Agustin Matias March <ammarch@ammarch-dev.cba.intel.com>
Merge branch 'dp' of github.com:enableiot/iotkit-agent into dp
Merge branch 'dp' of github.com:enableiot/iotkit-agent into dp
Merge branch 'dp' of github.com:enableiot/iotkit-agent into dp

# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.