tests only work when generate.main() is called with strict=False