Add texts=* and text=* for matching text content with regex pattern.
Related tests are added as well.
Fill more elements in template.