add testobj generator for sample