Add tests for LazyNode caching mechanism