Add unit tests for heat.scaling.template

These are some independent unit tests for the resource_templates
function in heat.scaling.template.

Change-Id: I847b77aab1d95152e4e5dbe29956de71824bc42b
Implements: partial blueprint as-lib
Merge "Add unit tests for heat.scaling.template"