Add some testing for fallback, some testing that media-level-only

atrtibutes in the session level are properly ignored (both during
parse, and by HasAttribute). Fixing bugs uncovered by these tests.
Oh, sorry -- was reading too quickly. This is fine.