testdata generator (mostly) functional