Fixed CodeGenerator specs.
Fixed specs