This is the same as test_dynamic_model, but with a generate-compatible class
test_dynamic_model
generate