Switched unit-tests to use Capture::Tiny and IO::Scalar