Use functions to create generators in tests

Good but we should move this under the `Generator\Integer` file to have both `Generator\pos` and `Generator\neg`.