Doctor says Trump aced cognitive test