fix basic function for test code geneator