Log output to stdout only when test property is true

My proposition to log to stdout only when 'test' is true - otherwise it's totally unnecessary in my opinion