Mother accused of killing child in court