output capture test