add test for retrieving nodes