Tests raise exception if logging problem

If there's a problem with the log call then the tests should catch
it.

Related-Bug: #1366988
Change-Id: Ied3f329902ca1088ebfcd163edd2cef797ba90a2
Merge "Tests raise exception if logging problem"