def test_tag_wizgenerated_as_created(stc):
    stc_sys = CStcSystem.Instance()
    project = stc_sys.GetObject("Project")
    ctor = CScriptableCreator()

    # Create Wizard param objects
    bgpParamObj = ctor.Create("BgpRouteGenParams", project)
    ipv4ParamObj = ctor.Create("Ipv4RouteGenParams", bgpParamObj)

    # Create BLL objects
    devObj = ctor.Create("EmulatedDevice", project)
    rtrObj = ctor.Create("BgpRouterConfig", devObj)
    routeObj = ctor.Create("BgpIpv4RouteConfig", rtrObj)

    # Manually set WizardGeneratedObject relation
    ipv4ParamObj.AddObject(routeObj, RelationType("WizardGeneratedObject"))

    # Run the tag function
    PrefixCmd.tag_wizgenerated_as_created(ipv4ParamObj, "testtag")

    # Check that the correct route object was tagged with the correct tag name
    taggObjs = tag_utils.get_tagged_objects_from_string_names("testtag")
    assert len(taggObjs) == 1
    assert routeObj.GetObjectHandle() == taggObjs[0].GetObjectHandle()
    return