Added TemplatesApi unit tests

nit. Lower case if it's not a constant.