Add tests for namespace and namespace-ref menus. Ref bug 1082099.
Add tests for namespace alias and namespace alias ref menus. Ref bug 1082099.
Add tests for macro and macro-ref menus. Fix bug 1082099.

That completes the tests for all menus!

Tweak menu_on() to tolerate the title attr of the macro menu's <a> tag.