fix mem leak in test with mrb_close