Adding tests for helpers.createGenerator