Update selection of node with pending deletion status 

Fix for test case: test_node_deletion