chore(testabilityPatch): fix the dump fn so that it works with karma's debug.html