Added a spec for chopping off terminal output.