test capture and run_test in working order