update nodes and relations - tests