Added tests for node generation.