[CDE-252]: Fixed applying new template delete all content from dashboards
[CDE-252]:Added Unit Tests
[CDE-252]: Replicated javascript unit test logic to pentaho5
Merge pull request #72 from davidmsantos90/CDE-252

[CDE-252]: Fixed applying new template delete all content from dashboards