Exit if no name is provided
Tests for subgenerator