Implemented Unit test for generator command