Added TemplatesApi unit tests

You are not verifying that the given instance name is being properly sent in the request.