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.