added cli tests

Signed-off-by: Chris Jones <chris@jonezy.org>
Merge branch 'tests'

Signed-off-by: Chris Jones <chris@jonezy.org>