Towards adaptive cognitive testing in dementia door