Refactoring tests and moving generators to function scope