chore(cookies): fix code for dart unit tests framework