Scientists hope the test may offer a new way to spot those at risk of dementia, before symptoms show.