Fix #83. Fix parsing of qnames and add test.