added tests for logging