More unit tests for the cli library
Fixing bugs when specifying a target directory