Get rid of warnings from capture_test