Add NewGenerator Test.