Test: call log.error once.