Correction of getTemplate()

After the tests, some bugs are  fixed.
Examples

Move of the templates and tests