More unit tests for addNode