Code before logging.
Fix test bug.