Tests for LayerTreeManager.