improved run_tests signature;added example
added example