unit test for cachinglayer _updateNodes function