Re #8669. Fix tests by ensuring log is created as a double.