Added TemplatesApi unit tests

Move this method to the ApiClient or to an utility class? Hopefully the RestClient should be generic to perform HTTP requests. We should try to remove the `SingleResourceTransportDto` type check from there too (not in this PR).