Added tests for building template resources