Implement method to get title by id and tests