My wife and I are perfect poster children for demonstrating the danger in making the assumption that tests are an accurate assessment of someone's mastery of material.
My wife has anxiety, and the time-limited, high-stakes, pass-or-fail nature of a test makes it much, much harder for her to perform well. Outside that context, she's blazingly intelligent, performs very well under real-world high-pressure situations, is extremely diligent at getting any other assigned work done well on time, and has repeatedly written the guidelines for processes and procedures in her jobs.
I'm the opposite in many ways. I generally do somewhat poorly in a classic classroom environment, primarily due to ADHD hampering my ability to get homework done regularly and on time. However, I test amazingly well. I consistently finish in 50-70% of the time of other students, with scores in the high 90% range. (In my jobs, I think I do pretty well.)
Naturally the plural of "anecdote" is not "data", but I've known enough other people who fit both of our molds that I think it's fair to say that basing even a plurality of your assessment of someone purely on tests, especially standardised tests, is going to mislead you at least as often as not, in both directions.