Four people, aged between 19 and 38, appear in court charged with murdering the newborn.