add cli tests, fix bin_dir