chore(core): fix final test callback called twice