generate_tests is now a classmethod