Added unit test for deleteNodes (focusing on ordering)