Fix iOS source test

Rather than assert on a complex and sometimes changeable condition, use the root node, `AppiumAUT`. Fixes #4141.