Allow shorthand for passing test functions.