add serializer coverage in generator spec.