Test a nested partial function