warn hide with io object and test warned messages.