list to gen transform and its tests