At an adjudicatory hearing on a petition for a child in need of assistance, if a local department requests substance abuse assessment and testing for a parent, a juvenile court shall order the assessment and testing unless the juvenile court finds compelling reasons not to order the assessment and testing and provides the reasons in writing.