change access specifier of siblingNode method and added test for it