Adjusted _run_test to classmethod