hiding warning and error console messages from unit tests