Merge pull request #130 from vnitinv/unit-tests

added test cases for Device and TemplateLoader Class