Use model instead of init in test_runner.test_generate