Second Commit. Add test case TestNodeNextState