Text this: Evaluation of large language models on mental health: from knowledge test to illness diagnosis