unit test for logging to index