Added unit test for duplicate copies of templated file.
Got template double creation test passing.
Fixed filename failing to be returned.