Renamed to template, changed unit test to make it more clear how it works.