ENH: Add run_tests_if_main with timing and memory profiling