Restore the ability to run tests from a function.
Allow any options to be passed through test function
add example of likely kwargs to test() docstring
Merge pull request #9 from ivanov/testfunc

added a doc string example
Fix docstring codeblock
Merge pull request #4632 from takluyver/testfunc

Restore the ability to run tests from a function.