BANGOR — A 47-year-old man serving two life sentences for the 1999 execution-style shooting deaths of his ex-girlfriend and the toddler she was baby-sitting is asking a judge to allow DNA tests on evidence he says might show somebody else committed the murders.

Jeffrey Cookson appeared before Justice Roland Cole in a Bangor courtroom Wednesday. Cookson denies killing 20-year-old Mindy Gould and 21-month-old Treven Cunningham in Dexter.

The Bangor Daily News reported that Cookson’s attorney argued for DNA testing on clothes and other items worn by another man who claimed to have killed Gould and the boy, but later recanted.

Wednesday’s hearing was the result of a Maine Supreme Judicial Court decision in May that overturned Cole’s earlier ruling that denied Cookson’s petition for DNA testing.