Do not execute function when checking its name

I'm not sure why this was necessary.  I stumbled across this while debugging a problem with the rc middleware.  I've added some trivial unit tests.
Merge pull request #84 from boneskull/master

Do not execute function when checking its name