Add tests for update_node