XMLReader first test and bug fixes