added get tokens template and repository methods with test