Added unit test for generator
Merge remote-tracking branch 'origin/master'