Added test to ensure target dir is provided as argument.