Add some tests of FileCapture
Close file objects
Restore stderr suppression