added test cases for node states