add cmd-line program, samples to test