Avoid logging with puts on testing env

Avoid puts on test so there is not trash when running the tests