Prediction markets face a key test in the US midterms as bettors and analysts assess their ability to forecast election results.