slight fix to update_node_pool, unit tests for update_node_pool