Co-defendant takes plea deal after testifying about girl's murder