added test for logging