bugfix for very small texts
- when the text length was smaller then test group length, the application hang
- fixed a missed namespace refactoring point