Added more tests to withCapture()