add run function to run tests from within scripts
Merge pull request #28 from nwlunatic/add_run_function

add run function to run tests from within scripts