bug 853712 - fix leak detection in unittests. r=philor