Treating cancer is often a case of trial and error but now researchers believe they've developed a test that could tell doctors in advance which treatments will work.