It looks like the functions that weren't matching were functions that had properties added to them. Something like:
var f = function() { . . . }
f.otherFunction = function() {
console.log("Ha! You'll never know this is here!");
}
I ended up changing the way I was testing these anyway, but I thought it would be worth explaining the issue for anyone else who happened upon it.