change test program and modify bugs in typebuilder