Add test for Kernel#capture_output extension.
Fix minor formatting error.