Adding tests and test case for checking the right order of entities in a Text_structure()