Shell to gen test