Generator version with tests.