TEST: Fix gen_model.groovy for generating test metadata models