Fixed UI test cases broken by the per-application menu commits.