add tests for node creation