Mother accused of killing son in court