SElf-test 'detects mental decline'