﻿<?xml version="1.0" encoding="utf-8"?>
<test-script product-version="10.4.2.18" schema-version="4">
  <test-case-set>
    <test-case name="Adoption_child_age_failed" notes="">
      <ent-set entity-type="global" entity-text="Global">
        <ent-inst id="global 1">
          <attr-inst name="marital_status" text="your marital status on the last day of the tax year you are asking about" type="text">
            <val>
              <text-val>Single</text-val>
            </val>
          </attr-inst>
          <attr-inst name="tax_year" text="the tax year you are asking about" type="number">
            <val>
              <number-val>2008.0</number-val>
            </val>
          </attr-inst>
          <attr-inst name="date_of_birth" text="the child's date of birth" type="date">
            <val>
              <date-val>1989-01-01</date-val>
            </val>
          </attr-inst>
          <attr-inst name="child_mental_state" text="the child is physically or mentally unable to take care of themselves" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="adopt_expenses_paid_EE_program" text="your adoption expenses were paid or reimbursed under a qualified adoption assistance program" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="citizen_tax_year" text="you were a U.S. citizen on the last day of the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="amount_MAGI" text="your modified adjusted gross income amount" type="currency">
            <val>
              <currency-val>50000.0</currency-val>
            </val>
          </attr-inst>
          <attr-inst name="eligible_adoption_credit" text="you are eligible for the adoption credit for the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
            <expected-val>
              <boolean-val>false</boolean-val>
            </expected-val>
          </attr-inst>
          <attr-inst name="eligible_child" text="the child is eligible to be adopted" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
            <expected-val>
              <boolean-val>false</boolean-val>
            </expected-val>
          </attr-inst>
          <attr-inst name="type_inquiry" text="the type of inquiry" type="text">
            <val>
              <text-val>Expenses without a carryforward</text-val>
            </val>
          </attr-inst>
          <attr-inst name="identified_child" text="the child has been identified for adoption" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
        </ent-inst>
      </ent-set>
    </test-case>
    <test-case name="Adoption_child_age_turned_18" notes="">
      <ent-set entity-type="global" entity-text="Global">
        <ent-inst id="global 1">
          <attr-inst name="marital_status" text="your marital status on the last day of the tax year you are asking about" type="text">
            <val>
              <text-val>Single</text-val>
            </val>
          </attr-inst>
          <attr-inst name="tax_year" text="the tax year you are asking about" type="number">
            <val>
              <number-val>2008.0</number-val>
            </val>
          </attr-inst>
          <attr-inst name="federal_funds" text="your adoption expenses were paid with funds received from federal, state or local programs" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="date_of_birth" text="the child's date of birth" type="date">
            <val>
              <date-val>1990-02-02</date-val>
            </val>
          </attr-inst>
          <attr-inst name="SSN_for_child" text="the child has a Social Security Number (SSN), Adoption Taxpayer Identification Number (ATIN), or Individual Taxpayer Identification Number (ITIN)" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="SAME_child" text="you took a credit or exclusion in a prior year for the SAME child" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="adopt_expenses_paid_EE_program" text="your adoption expenses were paid or reimbursed under a qualified adoption assistance program" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="adopt_expenses_paid" text="you paid adoption expenses in the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="amount_adoption_expenses" text="the amount of your adoption expenses" type="currency">
            <val>
              <currency-val>9000.0</currency-val>
            </val>
          </attr-inst>
          <attr-inst name="expenses_paid_preceding_year" text="you paid adoption expenses in the preceding tax year" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="necessary_expenses" text="you paid or incurred reasonable and necessary expenses which are directly related to the legal adoption of an eligible child (such as adoption fees, legal fees, travel expenses, etc.)" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="spouse_child" text="the child is your current spouse's child" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="citizen_tax_year" text="you were a U.S. citizen on the last day of the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="amount_MAGI" text="your modified adjusted gross income amount" type="currency">
            <val>
              <currency-val>56000.0</currency-val>
            </val>
          </attr-inst>
          <attr-inst name="eligible_adoption_credit" text="you are eligible for the adoption credit for the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
            <expected-val>
              <boolean-val>true</boolean-val>
            </expected-val>
          </attr-inst>
          <attr-inst name="eligible_child" text="the child is eligible to be adopted" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
            <expected-val>
              <boolean-val>true</boolean-val>
            </expected-val>
          </attr-inst>
          <attr-inst name="type_inquiry" text="the type of inquiry" type="text">
            <val>
              <text-val>Expenses without a carryforward</text-val>
            </val>
          </attr-inst>
          <attr-inst name="child_citizen_tax_year" text="the child was a citizen or resident of the United States or its possessions at the time the adoption process began" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
        </ent-inst>
      </ent-set>
    </test-case>
    <test-case name="Adoption_child_foreign_exclusionj_failed." notes="">
      <ent-set entity-type="global" entity-text="Global">
        <ent-inst id="global 1">
          <attr-inst name="marital_status" text="your marital status on the last day of the tax year you are asking about" type="text">
            <val>
              <text-val>Single</text-val>
            </val>
          </attr-inst>
          <attr-inst name="tax_year" text="the tax year you are asking about" type="number">
            <val>
              <number-val>2008.0</number-val>
            </val>
          </attr-inst>
          <attr-inst name="date_of_birth" text="the child's date of birth" type="date">
            <val>
              <date-val>2000-02-02</date-val>
            </val>
          </attr-inst>
          <attr-inst name="SSN_for_child" text="the child has a Social Security Number (SSN), Adoption Taxpayer Identification Number (ATIN), or Individual Taxpayer Identification Number (ITIN)" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="adoption_final_year" text="the adoption became final in the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="adopt_expenses_paid_EE_program" text="your adoption expenses were paid or reimbursed under a qualified adoption assistance program" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="spouse_child" text="the child is your current spouse's child" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="citizen_tax_year" text="you were a U.S. citizen on the last day of the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="amount_MAGI" text="your modified adjusted gross income amount" type="currency">
            <val>
              <currency-val>56000.0</currency-val>
            </val>
          </attr-inst>
          <attr-inst name="eligible_adoption_credit" text="you are eligible for the adoption credit for the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
            <expected-val>
              <boolean-val>false</boolean-val>
            </expected-val>
          </attr-inst>
          <attr-inst name="eligible_child" text="the child is eligible to be adopted" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
            <expected-val>
              <boolean-val>false</boolean-val>
            </expected-val>
          </attr-inst>
          <attr-inst name="child_citizen_tax_year" text="the child was a citizen or resident of the United States or its possessions at the time the adoption process began" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="adoption_final_preceding" text="the adoption was final in the preceding tax year" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="type_inquiry" text="the type of inquiry" type="text">
            <val>
              <text-val>Expenses without a carryforward</text-val>
            </val>
          </attr-inst>
          <attr-inst name="identified_child" text="the child has been identified for adoption" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="assistance_program" text="your employer had a qualified adoption assistance program" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
        </ent-inst>
      </ent-set>
    </test-case>
    <test-case name="adopt_foreign_child_final" notes="">
      <ent-set entity-type="global" entity-text="Global">
        <ent-inst id="global 1">
          <attr-inst name="necessary_expenses" text="you paid or incurred reasonable and necessary expenses which are directly related to the legal adoption of an eligible child (such as adoption fees, legal fees, travel expenses, etc.)" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="date_of_birth" text="the child's date of birth" type="date">
            <val>
              <date-val>2006-02-02</date-val>
            </val>
          </attr-inst>
          <attr-inst name="tax_year" text="the tax year you are asking about" type="number">
            <val>
              <number-val>2008.0</number-val>
            </val>
          </attr-inst>
          <attr-inst name="citizen_tax_year" text="you were a U.S. citizen on the last day of the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="child_citizen_tax_year" text="the child was a citizen or resident of the United States or its possessions at the time the adoption process began" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="marital_status" text="your marital status on the last day of the tax year you are asking about" type="text">
            <val>
              <text-val>Single</text-val>
            </val>
          </attr-inst>
          <attr-inst name="SSN_for_child" text="the child has a Social Security Number (SSN), Adoption Taxpayer Identification Number (ATIN), or Individual Taxpayer Identification Number (ITIN)" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="amount_adoption_expenses" text="the amount of your adoption expenses" type="currency">
            <val>
              <currency-val>19000.0</currency-val>
            </val>
          </attr-inst>
          <attr-inst name="amount_MAGI" text="your modified adjusted gross income amount" type="currency">
            <val>
              <currency-val>56000.0</currency-val>
            </val>
          </attr-inst>
          <attr-inst name="assistance_program" text="your employer had a qualified adoption assistance program" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="federal_funds" text="your adoption expenses were paid with funds received from federal, state or local programs" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="adopt_expenses_paid" text="you paid adoption expenses in the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="adoption_final_preceding" text="the adoption was final in the preceding tax year" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="eligible_child" text="the child is eligible to be adopted" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
            <expected-val>
              <boolean-val>false</boolean-val>
            </expected-val>
          </attr-inst>
          <attr-inst name="eligible_adoption_credit" text="you are eligible for the adoption credit for the tax year you are asking about" type="boolean">
            <expected-val>
              <boolean-val>false</boolean-val>
            </expected-val>
          </attr-inst>
          <attr-inst name="fil_stat_single" text="your filing status is single" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="type_inquiry" text="the type of inquiry" type="text">
            <val>
              <text-val>Expenses without a carryforward</text-val>
            </val>
          </attr-inst>
          <attr-inst name="identified_child" text="the child has been identified for adoption" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="adoption_final_year" text="the adoption became final in the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="other_persons" text="your adoption expenses were paid with funds received from any other person or organization" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
        </ent-inst>
      </ent-set>
    </test-case>
    <test-case name="Carryforward" notes="">
      <ent-set entity-type="global" entity-text="Global">
        <ent-inst id="global 1">
          <attr-inst name="type_inquiry" text="the type of inquiry" type="text">
            <val>
              <text-val>Only a prior year unused adoption credit (carryforward) determined on prior year Form 8839</text-val>
            </val>
          </attr-inst>
          <attr-inst name="credit_five_year" text="you have a credit that originated in a tax year more than 5 years before the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="all_over_5" text="all of the credit carryforward originated in tax years more than 5 years before the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="citizen_tax_year" text="you were a U.S. citizen on the last day of the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="tax_year" text="the tax year you are asking about" type="number">
            <val>
              <number-val>2010.0</number-val>
            </val>
          </attr-inst>
          <attr-inst name="eligible_adoption_credit" text="you are eligible for the adoption credit for the tax year you are asking about" type="boolean">
            <expected-val>
              <boolean-val>true</boolean-val>
            </expected-val>
          </attr-inst>
          <attr-inst name="child_citizen_tax_year" text="the child was a citizen or resident of the United States or its possessions at the time the adoption process began" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="special_needs" text="a state determined that the child has special needs" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="adoption_final_year" text="the adoption became final in the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="identified_child" text="the child has been identified for adoption" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="marital_status" text="your marital status on the last day of the tax year you are asking about" type="text">
            <val>
              <text-val>Single, unmarried, or legally separated</text-val>
            </val>
          </attr-inst>
          <attr-inst name="date_of_birth" text="the child's date of birth" type="date">
            <val>
              <date-val>2003-11-11</date-val>
            </val>
          </attr-inst>
          <attr-inst name="expenses_paid_preceding_year" text="you paid adoption expenses in the preceding tax year" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="necessary_expenses" text="you paid or incurred reasonable and necessary expenses which are directly related to the legal adoption of an eligible child (such as adoption fees, legal fees, travel expenses, etc.)" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="amount_MAGI" text="your modified adjusted gross income amount" type="currency">
            <val>
              <currency-val>34000.0</currency-val>
            </val>
          </attr-inst>
          <attr-inst name="SSN_for_child" text="the child has a Social Security Number (SSN), Adoption Taxpayer Identification Number (ATIN), or Individual Taxpayer Identification Number (ITIN)" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="adopt_expenses_paid" text="you paid adoption expenses in the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="other_persons" text="your adoption expenses were paid with funds received from any other person or organization" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="federal_funds" text="your adoption expenses were paid with funds received from federal, state or local programs" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="assistance_program" text="your employer had a qualified adoption assistance program" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
        </ent-inst>
      </ent-set>
    </test-case>
    <test-case name="carryforward w addl exp" notes="">
      <ent-set entity-type="global" entity-text="Global">
        <ent-inst id="global 1">
          <attr-inst name="adopt_successful" text="the adoption was unsuccessful in the preceding tax year" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="type_inquiry" text="the type of inquiry" type="text">
            <val>
              <text-val>Carryforward with additional expenses</text-val>
            </val>
          </attr-inst>
          <attr-inst name="expenses_paid_preceding_year" text="you paid adoption expenses in the preceding tax year" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="credit_five_year" text="you have a credit that originated in a tax year more than 5 years before the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="potenmtial_child_citizen" text="the potential child was a citizen or resident of the United States or its possessions at the time the adoption process began" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="identified_child" text="the child has been identified for adoption" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="amount_adoption_expenses" text="the amount of your adoption expenses" type="currency">
            <val>
              <currency-val>1200.0</currency-val>
            </val>
          </attr-inst>
          <attr-inst name="necessary_expenses" text="you paid or incurred reasonable and necessary expenses which are directly related to the legal adoption of an eligible child (such as adoption fees, legal fees, travel expenses, etc.)" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="amount_MAGI" text="your modified adjusted gross income amount" type="currency">
            <val>
              <currency-val>22222.0</currency-val>
            </val>
          </attr-inst>
          <attr-inst name="all_over_5" text="all of the credit carryforward originated in tax years more than 5 years before the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="unsuccessful_current_year" text="the adoption was unsuccessful in the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="citizen_tax_year" text="you were a U.S. citizen on the last day of the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="adopt_expenses_paid" text="you paid adoption expenses in the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="adoption_final_year" text="the adoption became final in the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="under_18" text="the potential child is under 18" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="federal_funds" text="your adoption expenses were paid with funds received from federal, state or local programs" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="assistance_program" text="your employer had a qualified adoption assistance program" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="unidentified_child_special_needs" text="the state has determined if the potential child has special needs" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="tax_year" text="the tax year you are asking about" type="number">
            <val>
              <number-val>2009.0</number-val>
            </val>
          </attr-inst>
          <attr-inst name="other_persons" text="your adoption expenses were paid with funds received from any other person or organization" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="adoption_final_preceding" text="the adoption was final in the preceding tax year" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="SAME_child" text="you took a credit or exclusion in a prior year for the SAME child" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="eligible_adoption_credit" text="you are eligible for the adoption credit for the tax year you are asking about" type="boolean">
            <expected-val>
              <boolean-val>true</boolean-val>
            </expected-val>
          </attr-inst>
          <attr-inst name="eligible_child" text="the child is eligible to be adopted" type="boolean">
            <expected-val>
              <boolean-val>true</boolean-val>
            </expected-val>
          </attr-inst>
          <attr-inst name="special_needs" text="a state determined that the child has special needs" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="marital_status" text="your marital status on the last day of the tax year you are asking about" type="text">
            <val>
              <text-val>Single, unmarried, or legally separated</text-val>
            </val>
          </attr-inst>
        </ent-inst>
      </ent-set>
    </test-case>
    <test-case name="Exp without carryfwd phaseout applies" notes="">
      <ent-set entity-type="global" entity-text="Global">
        <ent-inst id="global 1">
          <attr-inst name="adopt_successful" text="the adoption was unsuccessful in the preceding tax year" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="type_inquiry" text="the type of inquiry" type="text">
            <val>
              <text-val>Expenses without a carryforward</text-val>
            </val>
          </attr-inst>
          <attr-inst name="expenses_paid_preceding_year" text="you paid adoption expenses in the preceding tax year" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="potenmtial_child_citizen" text="the potential child was a citizen or resident of the United States or its possessions at the time the adoption process began" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="identified_child" text="the child has been identified for adoption" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="amount_adoption_expenses" text="the amount of your adoption expenses" type="currency">
            <val>
              <currency-val>10000.0</currency-val>
            </val>
          </attr-inst>
          <attr-inst name="necessary_expenses" text="you paid or incurred reasonable and necessary expenses which are directly related to the legal adoption of an eligible child (such as adoption fees, legal fees, travel expenses, etc.)" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="amount_MAGI" text="your modified adjusted gross income amount" type="currency">
            <val>
              <currency-val>200000.0</currency-val>
            </val>
          </attr-inst>
          <attr-inst name="unsuccessful_current_year" text="the adoption was unsuccessful in the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="citizen_tax_year" text="you were a U.S. citizen on the last day of the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="adopt_expenses_paid" text="you paid adoption expenses in the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="adoption_final_year" text="the adoption became final in the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="under_18" text="the potential child is under 18" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="federal_funds" text="your adoption expenses were paid with funds received from federal, state or local programs" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="assistance_program" text="your employer had a qualified adoption assistance program" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="unidentified_child_special_needs" text="the state has determined if the potential child has special needs" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="tax_year" text="the tax year you are asking about" type="number">
            <val>
              <number-val>2010.0</number-val>
            </val>
          </attr-inst>
          <attr-inst name="other_persons" text="your adoption expenses were paid with funds received from any other person or organization" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="adoption_final_preceding" text="the adoption was final in the preceding tax year" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="SAME_child" text="you took a credit or exclusion in a prior year for the SAME child" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="eligible_adoption_credit" text="you are eligible for the adoption credit for the tax year you are asking about" type="boolean">
            <expected-val>
              <boolean-val>true</boolean-val>
            </expected-val>
          </attr-inst>
          <attr-inst name="eligible_child" text="the child is eligible to be adopted" type="boolean">
            <expected-val>
              <boolean-val>true</boolean-val>
            </expected-val>
          </attr-inst>
          <attr-inst name="special_needs" text="a state determined that the child has special needs" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="state_special_needs" text="the state has determined if the child has special needs" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="marital_status" text="your marital status on the last day of the tax year you are asking about" type="text">
            <val>
              <text-val>Single, unmarried, or legally separated</text-val>
            </val>
          </attr-inst>
        </ent-inst>
      </ent-set>
    </test-case>
    <test-case name="adopt scen 5" notes="">
      <ent-set entity-type="global" entity-text="Global">
        <ent-inst id="global 1">
          <attr-inst name="adopt_successful" text="the adoption was unsuccessful in the preceding tax year" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="type_inquiry" text="the type of inquiry" type="text">
            <val>
              <text-val>Expenses without a carryforward</text-val>
            </val>
          </attr-inst>
          <attr-inst name="expenses_paid_preceding_year" text="you paid adoption expenses in the preceding tax year" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="potenmtial_child_citizen" text="the potential child was a citizen or resident of the United States or its possessions at the time the adoption process began" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="identified_child" text="the child has been identified for adoption" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="amount_adoption_expenses" text="the amount of your adoption expenses" type="currency">
            <val>
              <currency-val>10000.0</currency-val>
            </val>
          </attr-inst>
          <attr-inst name="necessary_expenses" text="you paid or incurred reasonable and necessary expenses which are directly related to the legal adoption of an eligible child (such as adoption fees, legal fees, travel expenses, etc.)" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="amount_MAGI" text="your modified adjusted gross income amount" type="currency">
            <val>
              <currency-val>200000.0</currency-val>
            </val>
          </attr-inst>
          <attr-inst name="unsuccessful_current_year" text="the adoption was unsuccessful in the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="citizen_tax_year" text="you were a U.S. citizen on the last day of the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="adopt_expenses_paid" text="you paid adoption expenses in the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="adoption_final_year" text="the adoption became final in the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="under_18" text="the potential child is under 18" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="federal_funds" text="your adoption expenses were paid with funds received from federal, state or local programs" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="assistance_program" text="your employer had a qualified adoption assistance program" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="unidentified_child_special_needs" text="the state has determined if the potential child has special needs" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="tax_year" text="the tax year you are asking about" type="number">
            <val>
              <number-val>2010.0</number-val>
            </val>
          </attr-inst>
          <attr-inst name="other_persons" text="your adoption expenses were paid with funds received from any other person or organization" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="adoption_final_preceding" text="the adoption was final in the preceding tax year" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="SAME_child" text="you took a credit or exclusion in a prior year for the SAME child" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="eligible_adoption_credit" text="you are eligible for the adoption credit for the tax year you are asking about" type="boolean">
            <expected-val>
              <boolean-val>true</boolean-val>
            </expected-val>
          </attr-inst>
          <attr-inst name="eligible_child" text="the child is eligible to be adopted" type="boolean">
            <expected-val>
              <boolean-val>true</boolean-val>
            </expected-val>
          </attr-inst>
          <attr-inst name="special_needs" text="a state determined that the child has special needs" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="state_special_needs" text="the state has determined if the child has special needs" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="marital_status" text="your marital status on the last day of the tax year you are asking about" type="text">
            <val>
              <text-val>Single, unmarried, or legally separated</text-val>
            </val>
          </attr-inst>
        </ent-inst>
      </ent-set>
    </test-case>
    <test-case name="adopt scen 7" notes="">
      <ent-set entity-type="global" entity-text="Global">
        <ent-inst id="global 1">
          <attr-inst name="adopt_successful" text="the adoption was unsuccessful in the preceding tax year" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="type_inquiry" text="the type of inquiry" type="text">
            <val>
              <text-val>Expenses without a carryforward</text-val>
            </val>
          </attr-inst>
          <attr-inst name="expenses_paid_preceding_year" text="you paid adoption expenses in the preceding tax year" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="potenmtial_child_citizen" text="the potential child was a citizen or resident of the United States or its possessions at the time the adoption process began" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="identified_child" text="the child has been identified for adoption" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="amount_adoption_expenses" text="the amount of your adoption expenses" type="currency">
            <val>
              <currency-val>26000.0</currency-val>
            </val>
          </attr-inst>
          <attr-inst name="necessary_expenses" text="you paid or incurred reasonable and necessary expenses which are directly related to the legal adoption of an eligible child (such as adoption fees, legal fees, travel expenses, etc.)" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="amount_MAGI" text="your modified adjusted gross income amount" type="currency">
            <val>
              <currency-val>200000.0</currency-val>
            </val>
          </attr-inst>
          <attr-inst name="unsuccessful_current_year" text="the adoption was unsuccessful in the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="citizen_tax_year" text="you were a U.S. citizen on the last day of the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="adopt_expenses_paid" text="you paid adoption expenses in the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="adoption_final_year" text="the adoption became final in the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="under_18" text="the potential child is under 18" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="federal_funds" text="your adoption expenses were paid with funds received from federal, state or local programs" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="assistance_program" text="your employer had a qualified adoption assistance program" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="unidentified_child_special_needs" text="the state has determined if the potential child has special needs" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="tax_year" text="the tax year you are asking about" type="number">
            <val>
              <number-val>2010.0</number-val>
            </val>
          </attr-inst>
          <attr-inst name="other_persons" text="your adoption expenses were paid with funds received from any other person or organization" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="adoption_final_preceding" text="the adoption was final in the preceding tax year" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="SAME_child" text="you took a credit or exclusion in a prior year for the SAME child" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="eligible_adoption_credit" text="you are eligible for the adoption credit for the tax year you are asking about" type="boolean">
            <expected-val>
              <boolean-val>true</boolean-val>
            </expected-val>
          </attr-inst>
          <attr-inst name="eligible_child" text="the child is eligible to be adopted" type="boolean">
            <expected-val>
              <boolean-val>true</boolean-val>
            </expected-val>
          </attr-inst>
          <attr-inst name="special_needs" text="a state determined that the child has special needs" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="state_special_needs" text="the state has determined if the child has special needs" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="marital_status" text="your marital status on the last day of the tax year you are asking about" type="text">
            <val>
              <text-val>Single, unmarried, or legally separated</text-val>
            </val>
          </attr-inst>
        </ent-inst>
      </ent-set>
    </test-case>
    <test-case name="adopt scen 9" notes="">
      <ent-set entity-type="global" entity-text="Global">
        <ent-inst id="global 1">
          <attr-inst name="type_inquiry" text="the type of inquiry" type="text">
            <val>
              <text-val>Expenses without a carryforward</text-val>
            </val>
          </attr-inst>
          <attr-inst name="date_of_birth" text="the child's date of birth" type="date">
            <val>
              <date-val>2007-07-07</date-val>
            </val>
          </attr-inst>
          <attr-inst name="identified_child" text="the child has been identified for adoption" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="amount_adoption_expenses" text="the amount of your adoption expenses" type="currency">
            <val>
              <currency-val>5000.0</currency-val>
            </val>
          </attr-inst>
          <attr-inst name="necessary_expenses" text="you paid or incurred reasonable and necessary expenses which are directly related to the legal adoption of an eligible child (such as adoption fees, legal fees, travel expenses, etc.)" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="amount_MAGI" text="your modified adjusted gross income amount" type="currency">
            <val>
              <currency-val>65000.0</currency-val>
            </val>
          </attr-inst>
          <attr-inst name="SSN_for_child" text="the child has a Social Security Number (SSN), Adoption Taxpayer Identification Number (ATIN), or Individual Taxpayer Identification Number (ITIN)" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="special_needs" text="a state determined that the child has special needs" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="amount_other_person" text="the amount of expenses paid with funds received from any other person or organization" type="currency">
            <val>
              <currency-val>5500.0</currency-val>
            </val>
          </attr-inst>
          <attr-inst name="citizen_tax_year" text="you were a U.S. citizen on the last day of the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="federal_funds" text="your adoption expenses were paid with funds received from federal, state or local programs" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="assistance_program" text="your employer had a qualified adoption assistance program" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="tax_year" text="the tax year you are asking about" type="number">
            <val>
              <number-val>2010.0</number-val>
            </val>
          </attr-inst>
          <attr-inst name="other_persons" text="your adoption expenses were paid with funds received from any other person or organization" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="child_citizen_tax_year" text="the child was a citizen or resident of the United States or its possessions at the time the adoption process began" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="eligible_adoption_credit" text="you are eligible for the adoption credit for the tax year you are asking about" type="boolean">
            <expected-val>
              <boolean-val>false</boolean-val>
            </expected-val>
          </attr-inst>
          <attr-inst name="eligible_child" text="the child is eligible to be adopted" type="boolean">
            <expected-val>
              <boolean-val>true</boolean-val>
            </expected-val>
          </attr-inst>
          <attr-inst name="marital_status" text="your marital status on the last day of the tax year you are asking about" type="text">
            <val>
              <text-val>Single, unmarried, or legally separated</text-val>
            </val>
          </attr-inst>
        </ent-inst>
      </ent-set>
    </test-case>
    <test-case name="adopt scen 9a" notes="">
      <ent-set entity-type="global" entity-text="Global">
        <ent-inst id="global 1">
          <attr-inst name="type_inquiry" text="the type of inquiry" type="text">
            <val>
              <text-val>Expenses without a carryforward</text-val>
            </val>
          </attr-inst>
          <attr-inst name="date_of_birth" text="the child's date of birth" type="date">
            <val>
              <date-val>2007-07-07</date-val>
            </val>
          </attr-inst>
          <attr-inst name="identified_child" text="the child has been identified for adoption" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="amount_adoption_expenses" text="the amount of your adoption expenses" type="currency">
            <val>
              <currency-val>5000.0</currency-val>
            </val>
          </attr-inst>
          <attr-inst name="necessary_expenses" text="you paid or incurred reasonable and necessary expenses which are directly related to the legal adoption of an eligible child (such as adoption fees, legal fees, travel expenses, etc.)" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="amount_MAGI" text="your modified adjusted gross income amount" type="currency">
            <val>
              <currency-val>65000.0</currency-val>
            </val>
          </attr-inst>
          <attr-inst name="SSN_for_child" text="the child has a Social Security Number (SSN), Adoption Taxpayer Identification Number (ATIN), or Individual Taxpayer Identification Number (ITIN)" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="special_needs" text="a state determined that the child has special needs" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="amount_other_person" text="the amount of expenses paid with funds received from any other person or organization" type="currency">
            <val>
              <currency-val>5500.0</currency-val>
            </val>
          </attr-inst>
          <attr-inst name="citizen_tax_year" text="you were a U.S. citizen on the last day of the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="federal_funds" text="your adoption expenses were paid with funds received from federal, state or local programs" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="amount_fed_programs" text="the amount of expenses paid with funds received from federal, state or local programs" type="currency">
            <val>
              <currency-val>5500.0</currency-val>
            </val>
          </attr-inst>
          <attr-inst name="assistance_program" text="your employer had a qualified adoption assistance program" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="tax_year" text="the tax year you are asking about" type="number">
            <val>
              <number-val>2010.0</number-val>
            </val>
          </attr-inst>
          <attr-inst name="other_persons" text="your adoption expenses were paid with funds received from any other person or organization" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="child_citizen_tax_year" text="the child was a citizen or resident of the United States or its possessions at the time the adoption process began" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="eligible_adoption_credit" text="you are eligible for the adoption credit for the tax year you are asking about" type="boolean">
            <expected-val>
              <boolean-val>false</boolean-val>
            </expected-val>
          </attr-inst>
          <attr-inst name="eligible_child" text="the child is eligible to be adopted" type="boolean">
            <expected-val>
              <boolean-val>true</boolean-val>
            </expected-val>
          </attr-inst>
          <attr-inst name="marital_status" text="your marital status on the last day of the tax year you are asking about" type="text">
            <val>
              <text-val>Single, unmarried, or legally separated</text-val>
            </val>
          </attr-inst>
        </ent-inst>
      </ent-set>
    </test-case>
    <test-case name="adopt scen 10" notes="">
      <ent-set entity-type="global" entity-text="Global">
        <ent-inst id="global 1">
          <attr-inst name="adopt_expenses_paid_EE_program" text="your adoption expenses were paid or reimbursed under a qualified adoption assistance program" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="type_inquiry" text="the type of inquiry" type="text">
            <val>
              <text-val>Expenses without a carryforward</text-val>
            </val>
          </attr-inst>
          <attr-inst name="date_of_birth" text="the child's date of birth" type="date">
            <val>
              <date-val>2007-07-07</date-val>
            </val>
          </attr-inst>
          <attr-inst name="spouse_last_6_months" text="your spouse lived with you at any time during the last 6 months of the tax year" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="keeping_up_home" text="you provided over half the cost of keeping up your home" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="identified_child" text="the child has been identified for adoption" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="necessary_expenses" text="you paid or incurred reasonable and necessary expenses which are directly related to the legal adoption of an eligible child (such as adoption fees, legal fees, travel expenses, etc.)" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="amount_MAGI" text="your modified adjusted gross income amount" type="currency">
            <val>
              <currency-val>56520.0</currency-val>
            </val>
          </attr-inst>
          <attr-inst name="SSN_for_child" text="the child has a Social Security Number (SSN), Adoption Taxpayer Identification Number (ATIN), or Individual Taxpayer Identification Number (ITIN)" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="special_needs" text="a state determined that the child has special needs" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="citizen_tax_year" text="you were a U.S. citizen on the last day of the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="adoption_final_year" text="the adoption became final in the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="qual_person_lived_6_months" text="the child you are adopting lived in your home more than half of the tax year" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="assistance_program" text="your employer had a qualified adoption assistance program" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="tax_year" text="the tax year you are asking about" type="number">
            <val>
              <number-val>2010.0</number-val>
            </val>
          </attr-inst>
          <attr-inst name="marital_status" text="your marital status on the last day of the tax year you are asking about" type="text">
            <val>
              <text-val>Married</text-val>
            </val>
          </attr-inst>
          <attr-inst name="spouse_child" text="the child is your current spouse's child" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="SAME_child" text="you took a credit or exclusion in a prior year for the SAME child" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="child_citizen_tax_year" text="the child was a citizen or resident of the United States or its possessions at the time the adoption process began" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="eligible_adoption_credit" text="you are eligible for the adoption credit for the tax year you are asking about" type="boolean">
            <expected-val>
              <boolean-val>true</boolean-val>
            </expected-val>
          </attr-inst>
          <attr-inst name="eligible_child" text="the child is eligible to be adopted" type="boolean">
            <expected-val>
              <boolean-val>true</boolean-val>
            </expected-val>
          </attr-inst>
          <attr-inst name="elect_fil_joint" text="you and your spouse elect to file a joint tax return for the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
        </ent-inst>
      </ent-set>
    </test-case>
    <test-case name="adopt scen 11" notes="">
      <ent-set entity-type="global" entity-text="Global">
        <ent-inst id="global 1">
          <attr-inst name="type_inquiry" text="the type of inquiry" type="text">
            <val>
              <text-val>Expenses without a carryforward</text-val>
            </val>
          </attr-inst>
          <attr-inst name="date_of_birth" text="the child's date of birth" type="date">
            <val>
              <date-val>2005-05-05</date-val>
            </val>
          </attr-inst>
          <attr-inst name="expenses_paid_preceding_year" text="you paid adoption expenses in the preceding tax year" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="identified_child" text="the child has been identified for adoption" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="amount_adoption_expenses" text="the amount of your adoption expenses" type="currency">
            <val>
              <currency-val>8000.0</currency-val>
            </val>
          </attr-inst>
          <attr-inst name="necessary_expenses" text="you paid or incurred reasonable and necessary expenses which are directly related to the legal adoption of an eligible child (such as adoption fees, legal fees, travel expenses, etc.)" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="amount_MAGI" text="your modified adjusted gross income amount" type="currency">
            <val>
              <currency-val>85646.0</currency-val>
            </val>
          </attr-inst>
          <attr-inst name="unsuccessful_current_year" text="the adoption was unsuccessful in the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="SSN_for_child" text="the child has a Social Security Number (SSN), Adoption Taxpayer Identification Number (ATIN), or Individual Taxpayer Identification Number (ITIN)" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="special_needs" text="a state determined that the child has special needs" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="citizen_tax_year" text="you were a U.S. citizen on the last day of the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="adopt_expenses_paid" text="you paid adoption expenses in the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="adoption_final_year" text="the adoption became final in the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="federal_funds" text="your adoption expenses were paid with funds received from federal, state or local programs" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="amount_fed_programs" text="the amount of expenses paid with funds received from federal, state or local programs" type="currency">
            <val>
              <currency-val>5000.0</currency-val>
            </val>
          </attr-inst>
          <attr-inst name="assistance_program" text="your employer had a qualified adoption assistance program" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="tax_year" text="the tax year you are asking about" type="number">
            <val>
              <number-val>2010.0</number-val>
            </val>
          </attr-inst>
          <attr-inst name="other_persons" text="your adoption expenses were paid with funds received from any other person or organization" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="SAME_child" text="you took a credit or exclusion in a prior year for the SAME child" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="child_citizen_tax_year" text="the child was a citizen or resident of the United States or its possessions at the time the adoption process began" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="eligible_adoption_credit" text="you are eligible for the adoption credit for the tax year you are asking about" type="boolean">
            <expected-val>
              <boolean-val>true</boolean-val>
            </expected-val>
          </attr-inst>
          <attr-inst name="eligible_child" text="the child is eligible to be adopted" type="boolean">
            <expected-val>
              <boolean-val>true</boolean-val>
            </expected-val>
          </attr-inst>
          <attr-inst name="marital_status" text="your marital status on the last day of the tax year you are asking about" type="text">
            <val>
              <text-val>Single, unmarried, or legally separated</text-val>
            </val>
          </attr-inst>
        </ent-inst>
      </ent-set>
    </test-case>
    <test-case name="adopt scen 14" notes="">
      <ent-set entity-type="global" entity-text="Global">
        <ent-inst id="global 1">
          <attr-inst name="type_inquiry" text="the type of inquiry" type="text">
            <val>
              <text-val>Expenses without a carryforward</text-val>
            </val>
          </attr-inst>
          <attr-inst name="date_of_birth" text="the child's date of birth" type="date">
            <val>
              <date-val>2008-08-08</date-val>
            </val>
          </attr-inst>
          <attr-inst name="expenses_paid_preceding_year" text="you paid adoption expenses in the preceding tax year" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="identified_child" text="the child has been identified for adoption" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="amount_adoption_expenses" text="the amount of your adoption expenses" type="currency">
            <val>
              <currency-val>8888.0</currency-val>
            </val>
          </attr-inst>
          <attr-inst name="necessary_expenses" text="you paid or incurred reasonable and necessary expenses which are directly related to the legal adoption of an eligible child (such as adoption fees, legal fees, travel expenses, etc.)" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="amount_MAGI" text="your modified adjusted gross income amount" type="currency">
            <val>
              <currency-val>89854.0</currency-val>
            </val>
          </attr-inst>
          <attr-inst name="SSN_for_child" text="the child has a Social Security Number (SSN), Adoption Taxpayer Identification Number (ATIN), or Individual Taxpayer Identification Number (ITIN)" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="special_needs" text="a state determined that the child has special needs" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="citizen_tax_year" text="you were a U.S. citizen on the last day of the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="adopt_expenses_paid" text="you paid adoption expenses in the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="adoption_final_year" text="the adoption became final in the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="federal_funds" text="your adoption expenses were paid with funds received from federal, state or local programs" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="assistance_program" text="your employer had a qualified adoption assistance program" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="tax_year" text="the tax year you are asking about" type="number">
            <val>
              <number-val>2010.0</number-val>
            </val>
          </attr-inst>
          <attr-inst name="other_persons" text="your adoption expenses were paid with funds received from any other person or organization" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="child_citizen_tax_year" text="the child was a citizen or resident of the United States or its possessions at the time the adoption process began" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="eligible_adoption_credit" text="you are eligible for the adoption credit for the tax year you are asking about" type="boolean">
            <expected-val>
              <boolean-val>false</boolean-val>
            </expected-val>
          </attr-inst>
          <attr-inst name="eligible_child" text="the child is eligible to be adopted" type="boolean">
            <expected-val>
              <boolean-val>true</boolean-val>
            </expected-val>
          </attr-inst>
          <attr-inst name="marital_status" text="your marital status on the last day of the tax year you are asking about" type="text">
            <val>
              <text-val>Single, unmarried, or legally separated</text-val>
            </val>
          </attr-inst>
        </ent-inst>
      </ent-set>
    </test-case>
    <test-case name="adopt scen 15" notes="">
      <ent-set entity-type="global" entity-text="Global">
        <ent-inst id="global 1">
          <attr-inst name="adopt_successful" text="the adoption was unsuccessful in the preceding tax year" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="type_inquiry" text="the type of inquiry" type="text">
            <val>
              <text-val>Expenses without a carryforward</text-val>
            </val>
          </attr-inst>
          <attr-inst name="date_of_birth" text="the child's date of birth" type="date">
            <val>
              <date-val>2008-07-07</date-val>
            </val>
          </attr-inst>
          <attr-inst name="expenses_paid_preceding_year" text="you paid adoption expenses in the preceding tax year" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="identified_child" text="the child has been identified for adoption" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="amount_adoption_expenses" text="the amount of your adoption expenses" type="currency">
            <val>
              <currency-val>8888.0</currency-val>
            </val>
          </attr-inst>
          <attr-inst name="necessary_expenses" text="you paid or incurred reasonable and necessary expenses which are directly related to the legal adoption of an eligible child (such as adoption fees, legal fees, travel expenses, etc.)" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="amount_MAGI" text="your modified adjusted gross income amount" type="currency">
            <val>
              <currency-val>87454.0</currency-val>
            </val>
          </attr-inst>
          <attr-inst name="unsuccessful_current_year" text="the adoption was unsuccessful in the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="SSN_for_child" text="the child has a Social Security Number (SSN), Adoption Taxpayer Identification Number (ATIN), or Individual Taxpayer Identification Number (ITIN)" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="special_needs" text="a state determined that the child has special needs" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="citizen_tax_year" text="you were a U.S. citizen on the last day of the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="adopt_expenses_paid" text="you paid adoption expenses in the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="adoption_final_year" text="the adoption became final in the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="federal_funds" text="your adoption expenses were paid with funds received from federal, state or local programs" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="assistance_program" text="your employer had a qualified adoption assistance program" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="tax_year" text="the tax year you are asking about" type="number">
            <val>
              <number-val>2010.0</number-val>
            </val>
          </attr-inst>
          <attr-inst name="other_persons" text="your adoption expenses were paid with funds received from any other person or organization" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="adoption_final_preceding" text="the adoption was final in the preceding tax year" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="child_citizen_tax_year" text="the child was a citizen or resident of the United States or its possessions at the time the adoption process began" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="eligible_adoption_credit" text="you are eligible for the adoption credit for the tax year you are asking about" type="boolean">
            <expected-val>
              <boolean-val>false</boolean-val>
            </expected-val>
          </attr-inst>
          <attr-inst name="eligible_child" text="the child is eligible to be adopted" type="boolean">
            <expected-val>
              <boolean-val>true</boolean-val>
            </expected-val>
          </attr-inst>
          <attr-inst name="marital_status" text="your marital status on the last day of the tax year you are asking about" type="text">
            <val>
              <text-val>Single, unmarried, or legally separated</text-val>
            </val>
          </attr-inst>
        </ent-inst>
      </ent-set>
    </test-case>
    <test-case name="adopt scen 16" notes="">
      <ent-set entity-type="global" entity-text="Global">
        <ent-inst id="global 1">
          <attr-inst name="type_inquiry" text="the type of inquiry" type="text">
            <val>
              <text-val>Expenses without a carryforward</text-val>
            </val>
          </attr-inst>
          <attr-inst name="date_of_birth" text="the child's date of birth" type="date">
            <val>
              <date-val>2007-07-07</date-val>
            </val>
          </attr-inst>
          <attr-inst name="expenses_paid_preceding_year" text="you paid adoption expenses in the preceding tax year" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="identified_child" text="the child has been identified for adoption" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="amount_adoption_expenses" text="the amount of your adoption expenses" type="currency">
            <val>
              <currency-val>7777.0</currency-val>
            </val>
          </attr-inst>
          <attr-inst name="necessary_expenses" text="you paid or incurred reasonable and necessary expenses which are directly related to the legal adoption of an eligible child (such as adoption fees, legal fees, travel expenses, etc.)" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="amount_MAGI" text="your modified adjusted gross income amount" type="currency">
            <val>
              <currency-val>88888.0</currency-val>
            </val>
          </attr-inst>
          <attr-inst name="unsuccessful_current_year" text="the adoption was unsuccessful in the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="SSN_for_child" text="the child has a Social Security Number (SSN), Adoption Taxpayer Identification Number (ATIN), or Individual Taxpayer Identification Number (ITIN)" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="special_needs" text="a state determined that the child has special needs" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="citizen_tax_year" text="you were a U.S. citizen on the last day of the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="adopt_expenses_paid" text="you paid adoption expenses in the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="adoption_final_year" text="the adoption became final in the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="federal_funds" text="your adoption expenses were paid with funds received from federal, state or local programs" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="assistance_program" text="your employer had a qualified adoption assistance program" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="tax_year" text="the tax year you are asking about" type="number">
            <val>
              <number-val>2010.0</number-val>
            </val>
          </attr-inst>
          <attr-inst name="other_persons" text="your adoption expenses were paid with funds received from any other person or organization" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="adoption_final_preceding" text="the adoption was final in the preceding tax year" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="child_citizen_tax_year" text="the child was a citizen or resident of the United States or its possessions at the time the adoption process began" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="eligible_adoption_credit" text="you are eligible for the adoption credit for the tax year you are asking about" type="boolean">
            <expected-val>
              <boolean-val>false</boolean-val>
            </expected-val>
          </attr-inst>
          <attr-inst name="eligible_child" text="the child is eligible to be adopted" type="boolean">
            <expected-val>
              <boolean-val>true</boolean-val>
            </expected-val>
          </attr-inst>
          <attr-inst name="marital_status" text="your marital status on the last day of the tax year you are asking about" type="text">
            <val>
              <text-val>Single, unmarried, or legally separated</text-val>
            </val>
          </attr-inst>
        </ent-inst>
      </ent-set>
    </test-case>
    <test-case name="adopt scen 16a" notes="">
      <ent-set entity-type="global" entity-text="Global">
        <ent-inst id="global 1">
          <attr-inst name="type_inquiry" text="the type of inquiry" type="text">
            <val>
              <text-val>Expenses without a carryforward</text-val>
            </val>
          </attr-inst>
          <attr-inst name="date_of_birth" text="the child's date of birth" type="date">
            <val>
              <date-val>2007-07-07</date-val>
            </val>
          </attr-inst>
          <attr-inst name="expenses_paid_preceding_year" text="you paid adoption expenses in the preceding tax year" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="identified_child" text="the child has been identified for adoption" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="amount_adoption_expenses" text="the amount of your adoption expenses" type="currency">
            <val>
              <currency-val>7777.0</currency-val>
            </val>
          </attr-inst>
          <attr-inst name="necessary_expenses" text="you paid or incurred reasonable and necessary expenses which are directly related to the legal adoption of an eligible child (such as adoption fees, legal fees, travel expenses, etc.)" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="amount_MAGI" text="your modified adjusted gross income amount" type="currency">
            <val>
              <currency-val>88888.0</currency-val>
            </val>
          </attr-inst>
          <attr-inst name="unsuccessful_current_year" text="the adoption was unsuccessful in the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="SSN_for_child" text="the child has a Social Security Number (SSN), Adoption Taxpayer Identification Number (ATIN), or Individual Taxpayer Identification Number (ITIN)" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="special_needs" text="a state determined that the child has special needs" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="citizen_tax_year" text="you were a U.S. citizen on the last day of the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="adopt_expenses_paid" text="you paid adoption expenses in the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="adoption_final_year" text="the adoption became final in the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="federal_funds" text="your adoption expenses were paid with funds received from federal, state or local programs" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="assistance_program" text="your employer had a qualified adoption assistance program" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="tax_year" text="the tax year you are asking about" type="number">
            <val>
              <number-val>2010.0</number-val>
            </val>
          </attr-inst>
          <attr-inst name="other_persons" text="your adoption expenses were paid with funds received from any other person or organization" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="adoption_final_preceding" text="the adoption was final in the preceding tax year" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="SAME_child" text="you took a credit or exclusion in a prior year for the SAME child" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="child_citizen_tax_year" text="the child was a citizen or resident of the United States or its possessions at the time the adoption process began" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="eligible_adoption_credit" text="you are eligible for the adoption credit for the tax year you are asking about" type="boolean">
            <expected-val>
              <boolean-val>true</boolean-val>
            </expected-val>
          </attr-inst>
          <attr-inst name="eligible_child" text="the child is eligible to be adopted" type="boolean">
            <expected-val>
              <boolean-val>true</boolean-val>
            </expected-val>
          </attr-inst>
          <attr-inst name="marital_status" text="your marital status on the last day of the tax year you are asking about" type="text">
            <val>
              <text-val>Single, unmarried, or legally separated</text-val>
            </val>
          </attr-inst>
        </ent-inst>
      </ent-set>
    </test-case>
    <test-case name="adopt scen 16b" notes="">
      <ent-set entity-type="global" entity-text="Global">
        <ent-inst id="global 1">
          <attr-inst name="type_inquiry" text="the type of inquiry" type="text">
            <val>
              <text-val>Expenses without a carryforward</text-val>
            </val>
          </attr-inst>
          <attr-inst name="date_of_birth" text="the child's date of birth" type="date">
            <val>
              <date-val>2007-07-07</date-val>
            </val>
          </attr-inst>
          <attr-inst name="expenses_paid_preceding_year" text="you paid adoption expenses in the preceding tax year" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="identified_child" text="the child has been identified for adoption" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="amount_adoption_expenses" text="the amount of your adoption expenses" type="currency">
            <val>
              <currency-val>7777.0</currency-val>
            </val>
          </attr-inst>
          <attr-inst name="necessary_expenses" text="you paid or incurred reasonable and necessary expenses which are directly related to the legal adoption of an eligible child (such as adoption fees, legal fees, travel expenses, etc.)" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="amount_MAGI" text="your modified adjusted gross income amount" type="currency">
            <val>
              <currency-val>88888.0</currency-val>
            </val>
          </attr-inst>
          <attr-inst name="unsuccessful_current_year" text="the adoption was unsuccessful in the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="SSN_for_child" text="the child has a Social Security Number (SSN), Adoption Taxpayer Identification Number (ATIN), or Individual Taxpayer Identification Number (ITIN)" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="special_needs" text="a state determined that the child has special needs" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="citizen_tax_year" text="you were a U.S. citizen on the last day of the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="adopt_expenses_paid" text="you paid adoption expenses in the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="adoption_final_year" text="the adoption became final in the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="federal_funds" text="your adoption expenses were paid with funds received from federal, state or local programs" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="assistance_program" text="your employer had a qualified adoption assistance program" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="tax_year" text="the tax year you are asking about" type="number">
            <val>
              <number-val>2010.0</number-val>
            </val>
          </attr-inst>
          <attr-inst name="other_persons" text="your adoption expenses were paid with funds received from any other person or organization" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="adoption_final_preceding" text="the adoption was final in the preceding tax year" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="SAME_child" text="you took a credit or exclusion in a prior year for the SAME child" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="child_citizen_tax_year" text="the child was a citizen or resident of the United States or its possessions at the time the adoption process began" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="eligible_adoption_credit" text="you are eligible for the adoption credit for the tax year you are asking about" type="boolean">
            <expected-val>
              <boolean-val>true</boolean-val>
            </expected-val>
          </attr-inst>
          <attr-inst name="eligible_child" text="the child is eligible to be adopted" type="boolean">
            <expected-val>
              <boolean-val>true</boolean-val>
            </expected-val>
          </attr-inst>
          <attr-inst name="marital_status" text="your marital status on the last day of the tax year you are asking about" type="text">
            <val>
              <text-val>Single, unmarried, or legally separated</text-val>
            </val>
          </attr-inst>
        </ent-inst>
      </ent-set>
    </test-case>
    <test-case name="adopt scen 17" notes="">
      <ent-set entity-type="global" entity-text="Global">
        <ent-inst id="global 1">
          <attr-inst name="adopt_expenses_paid_EE_program" text="your adoption expenses were paid or reimbursed under a qualified adoption assistance program" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="type_inquiry" text="the type of inquiry" type="text">
            <val>
              <text-val>Expenses without a carryforward</text-val>
            </val>
          </attr-inst>
          <attr-inst name="date_of_birth" text="the child's date of birth" type="date">
            <val>
              <date-val>2008-07-07</date-val>
            </val>
          </attr-inst>
          <attr-inst name="identified_child" text="the child has been identified for adoption" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="amount_adoption_expenses" text="the amount of your adoption expenses" type="currency">
            <val>
              <currency-val>6000.0</currency-val>
            </val>
          </attr-inst>
          <attr-inst name="necessary_expenses" text="you paid or incurred reasonable and necessary expenses which are directly related to the legal adoption of an eligible child (such as adoption fees, legal fees, travel expenses, etc.)" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="amount_MAGI" text="your modified adjusted gross income amount" type="currency">
            <val>
              <currency-val>88777.0</currency-val>
            </val>
          </attr-inst>
          <attr-inst name="SSN_for_child" text="the child has a Social Security Number (SSN), Adoption Taxpayer Identification Number (ATIN), or Individual Taxpayer Identification Number (ITIN)" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="citizen_tax_year" text="you were a U.S. citizen on the last day of the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="adoption_final_year" text="the adoption became final in the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="federal_funds" text="your adoption expenses were paid with funds received from federal, state or local programs" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="assistance_program" text="your employer had a qualified adoption assistance program" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="tax_year" text="the tax year you are asking about" type="number">
            <val>
              <number-val>2010.0</number-val>
            </val>
          </attr-inst>
          <attr-inst name="other_persons" text="your adoption expenses were paid with funds received from any other person or organization" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="amount_employer_provided_benefits" text="the amount of employer-provided adoption benefits" type="currency">
            <val>
              <currency-val>4000.0</currency-val>
            </val>
          </attr-inst>
          <attr-inst name="child_citizen_tax_year" text="the child was a citizen or resident of the United States or its possessions at the time the adoption process began" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="eligible_adoption_credit" text="you are eligible for the adoption credit for the tax year you are asking about" type="boolean">
            <expected-val>
              <boolean-val>true</boolean-val>
            </expected-val>
          </attr-inst>
          <attr-inst name="eligible_child" text="the child is eligible to be adopted" type="boolean">
            <expected-val>
              <boolean-val>true</boolean-val>
            </expected-val>
          </attr-inst>
          <attr-inst name="adp_finalizd_us" text="the adoption was finalized in the United States" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="marital_status" text="your marital status on the last day of the tax year you are asking about" type="text">
            <val>
              <text-val>Single, unmarried, or legally separated</text-val>
            </val>
          </attr-inst>
        </ent-inst>
      </ent-set>
    </test-case>
    <test-case name="201100190" notes="">
      <ent-set entity-type="global" entity-text="Global">
        <ent-inst id="global 1">
          <attr-inst name="type_inquiry" text="the type of inquiry" type="text">
            <val>
              <text-val>Expenses without a carryforward</text-val>
            </val>
          </attr-inst>
          <attr-inst name="date_of_birth" text="the child's date of birth" type="date">
            <val>
              <date-val>2004-10-20</date-val>
            </val>
          </attr-inst>
          <attr-inst name="identified_child" text="the child has been identified for adoption" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="amount_adoption_expenses" text="the amount of your adoption expenses" type="currency">
            <val>
              <currency-val>10000.0</currency-val>
            </val>
          </attr-inst>
          <attr-inst name="necessary_expenses" text="you paid or incurred reasonable and necessary expenses which are directly related to the legal adoption of an eligible child (such as adoption fees, legal fees, travel expenses, etc.)" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="amount_MAGI" text="your modified adjusted gross income amount" type="currency">
            <val>
              <currency-val>28000.0</currency-val>
            </val>
          </attr-inst>
          <attr-inst name="SSN_for_child" text="the child has a Social Security Number (SSN), Adoption Taxpayer Identification Number (ATIN), or Individual Taxpayer Identification Number (ITIN)" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="special_needs" text="a state determined that the child has special needs" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="adoption_final_year" text="the adoption became final in the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="other_persons" text="your adoption expenses were paid with funds received from any other person or organization" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="federal_funds" text="your adoption expenses were paid with funds received from federal, state or local programs" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="amount_fed_programs" text="the amount of expenses paid with funds received from federal, state or local programs" type="currency">
            <val>
              <currency-val>10000.0</currency-val>
            </val>
          </attr-inst>
          <attr-inst name="assistance_program" text="your employer had a qualified adoption assistance program" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="citizen_tax_year" text="you were a U.S. citizen on the last day of the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="tax_year" text="the tax year you are asking about" type="number">
            <val>
              <number-val>2010.0</number-val>
            </val>
          </attr-inst>
          <attr-inst name="SAME_child" text="you took a credit or exclusion in a prior year for the SAME child" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="marital_status" text="your marital status on the last day of the tax year you are asking about" type="text">
            <val>
              <text-val>Single</text-val>
            </val>
          </attr-inst>
          <attr-inst name="child_citizen_tax_year" text="the child was a citizen or resident of the United States or its possessions at the time the adoption process began" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="eligible_adoption_credit" text="you are eligible for the adoption credit for the tax year you are asking about" type="boolean">
            <expected-val>
              <boolean-val>false</boolean-val>
            </expected-val>
          </attr-inst>
          <attr-inst name="elect_fil_joint" text="you and your spouse elect to file a joint tax return for the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
        </ent-inst>
      </ent-set>
    </test-case>
    <test-case name="201100676" notes="">
      <ent-set entity-type="global" entity-text="Global">
        <ent-inst id="global 1">
          <attr-inst name="eligible_adoption_credit" text="you are eligible for the adoption credit for the tax year you are asking about" type="boolean">
            <expected-val>
              <boolean-val>true</boolean-val>
            </expected-val>
          </attr-inst>
          <attr-inst name="type_inquiry" text="the type of inquiry" type="text">
            <val>
              <text-val>Expenses without a carryforward</text-val>
            </val>
          </attr-inst>
          <attr-inst name="date_of_birth" text="the child's date of birth" type="date">
            <val>
              <date-val>2007-05-05</date-val>
            </val>
          </attr-inst>
          <attr-inst name="expenses_paid_preceding_year" text="you paid adoption expenses in the preceding tax year" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="identified_child" text="the child has been identified for adoption" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="amount_adoption_expenses" text="the amount of your adoption expenses" type="currency">
            <val>
              <currency-val>14000.0</currency-val>
            </val>
          </attr-inst>
          <attr-inst name="necessary_expenses" text="you paid or incurred reasonable and necessary expenses which are directly related to the legal adoption of an eligible child (such as adoption fees, legal fees, travel expenses, etc.)" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="amount_MAGI" text="your modified adjusted gross income amount" type="currency">
            <val>
              <currency-val>25000.0</currency-val>
            </val>
          </attr-inst>
          <attr-inst name="SSN_for_child" text="the child has a Social Security Number (SSN), Adoption Taxpayer Identification Number (ATIN), or Individual Taxpayer Identification Number (ITIN)" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="special_needs" text="a state determined that the child has special needs" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="adopt_expenses_paid" text="you paid adoption expenses in the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="adoption_final_year" text="the adoption became final in the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="other_persons" text="your adoption expenses were paid with funds received from any other person or organization" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="federal_funds" text="your adoption expenses were paid with funds received from federal, state or local programs" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="assistance_program" text="your employer had a qualified adoption assistance program" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="citizen_tax_year" text="you were a U.S. citizen on the last day of the tax year you are asking about" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="tax_year" text="the tax year you are asking about" type="number">
            <val>
              <number-val>2010.0</number-val>
            </val>
          </attr-inst>
          <attr-inst name="SAME_child" text="you took a credit or exclusion in a prior year for the SAME child" type="boolean">
            <val>
              <boolean-val>false</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="child_citizen_tax_year" text="the child was a citizen or resident of the United States or its possessions at the time the adoption process began" type="boolean">
            <val>
              <boolean-val>true</boolean-val>
            </val>
          </attr-inst>
          <attr-inst name="marital_status" text="your marital status on the last day of the tax year you are asking about" type="text">
            <val>
              <text-val>Single, unmarried, or legally separated</text-val>
            </val>
          </attr-inst>
        </ent-inst>
      </ent-set>
    </test-case>
  </test-case-set>
  <outcome-set>
    <outcome name="eligible_adoption_credit" display-name="b14@Rules_SystemRules_Interview_doc" text="you are eligible for the adoption credit for the tax year you are asking about" type="boolean" entity-type="global" entity-text="Global">
      <default-change-points>
        <unknown-val />
      </default-change-points>
    </outcome>
    <outcome name="eligible_child" display-name="b31@Rules_SourceRules_eligibility_doc" text="the child is eligible to be adopted" type="boolean" entity-type="global" entity-text="Global">
      <default-change-points>
        <unknown-val />
      </default-change-points>
    </outcome>
  </outcome-set>
</test-script>