modified dtest_glue.k