Police allege a nine-year-old boy had been in the care of a 24-year-old woman at the time of his death, as she faced court on one charge of murder.