Wrote two tests for CodeGenerator.