Add logging to test.