Corrections on Text and the build() method.

- Changing the text was buggy.
- Made the TestText test dynamic.