Fixed CodeGenerator specs.