move iohelper mock to minitest helper

it will be needed for checkbox specs etc as well

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>