Add capture()
Should fix $stderr tests.