feat(helpers.js): Add a create method for instanciating a generator in unit test