Fix #275 - Tests to validate lib/templates.json