Tests for log_error and log_device.