Fix test_module logging