Use functions to create generators in tests

should be @beforeClass I believe, only one call per-process is necessary