Add CLI unittests

Signed-off-by: Thanh Ha <thanh.ha@alumni.carleton.ca>