Test that multiple writes to stdout are captured

Updates the capture test to verify that multiple puts are captured. I wasn't sure if this would work.