fixed test case for the last commit.
updated setUseEmptyElementTags flag usage