Help with question

If a judge orders a mental evaluation test in a custody battle, can that be easily manipulated and passed?

Edit- I'm just curious about the whole thing with how its done and what not. So if anyone has any info about the process, I would appreciate it! I'm looking into leaving a physically and mentally abusive person.