Node: add test for setting a_parent and calculating replica value