refactor generatortests into separate files