Test LogInterceptor

I wrote a unit test for the LogInterceptor. It's a good thing, too,
because I introduced a subtle bug that swallowed exceptions.