Test for logging