Build generated codes to test and fixed some problems.