add standalone test program
use cmake to test