run_tests_if_main() can also run with nose, and is smarter