framework test use taskbuilder to initialize task

@xiaoyunwu