In some cases, the courts may give an order for psychological assessment if such is deemed necessary to meet the needs of the child and to assess the ability of a parent to meet the needs of the child. Please find enclosed a link for a recent case that deals with this issue:
http://www.canlii.org/en/on/onsc/doc/2016/2016onsc4334/2016onsc4334.html