Improve log test routines.