Do not call yourself victim.
Everyone is a pleasant human being as long as they respect others and plan and live their life.
"Psychiatric analysis..." suggestion by a judge is a humiliation on you and your wife by a judge.
So much of ugly situation you allowed a judge to create for you.
Forget the judge and the court.
Judges are not god nor can understand your real situation.
In this world, everyone needs psychiatric analysis.
And your own parents, relatives and friends are the best for your psychiatric analysis.
Forget the judge and the court.
As your wife is not 100% sure of marital separation, there is a very good chance that your marriage can be saved.
If you also have some love and trust left on your wife and your marriage, then, please go away from court.
Both of you take vacation and meet in a pleasant place in presence of trusted relatives and friends.
Talk openly. Then decide. Be open and positive.
If everything goes fine, tear your court papers and throw it in court dustbin.
Live happy life together.
Then never ever pass that "family court building" which has nothing to do with family but some legal procedure.
Else, please work out a mutual consent divorce and submit to the court.
Do not allow you, your wife and marriage to be humiliated in the court.