Genetic test could help identify rare cancer