fix tests
use a logging module