Some fixes in test logging.