more tests and fixes for LanguageIterator