I’m surprised by that. Lots of companies use personality tests but not usually as actual assessment criteria… just to give an indication on personality.
However, it’s worth noting that if you “fail” a personality test then this would indicate you wouldn’t actually enjoy the job - as much as it indicates to the company that you aren’t suitable.
It’s not really in anyone’s interests to practice personality tests, or answer questions in a way you think will get you the job. I’m guilty of this - I answered a personality questionaire for a sales job with answers that indicated I was the perfect personality match for a sales role. I got the job, but I hated it. I quit three months later!