Renamed tests with proper postfix
Fixed applyTemplateData logic to use clone of data

This was causing unit tests to pass incorrectly because the original
data was modified by applyTemplateData and then subsequently used
in the tests.