A pioneering genetic test is improving early diagnosis and treatment for people with hereditary cancer caused by a genetic condition.