add test for logging