Added templates presence tests