Add tests for getting logs