Fix dodgy test that miscounted log entries. (thanks @hodgestar)