Enhancing the effectiveness of cognitive tests for diagnosing dementia