consolidate test into caffe cli