Given that AI couldn't even speak English 6 years ago, do you really think it's going to struggle with unit tests for the next 20 years?
It's well worth looking at https://progress.openai.com/, here's a snippet:
> human: Are you actually conscious under anesthesia?
> GPT-1 (2018): i did n't . " you 're awake .
> GPT-3 (2021): There is no single answer to this question since anesthesia can be administered [...]