Update test_capture.py

use absolute path, so test could be run from any current running directory