Add tests for logs