Add test for the create node method