tests for logging