Tests for xml templates, better tests for the loading of templates