Add tests for NodeManager