Use an exception for tests on Generated.generated?