Moved testdata creation to main() to avoid being run by coverage