capture test output