Add unit test for generator#usage method

Ensure the generator name is correctly used in the usage output.