Remove unnecessary used module in test
Do not effect of changes by binmode globally
Use Scalar::Util::openhandle()
Update dependencies