regression test for 1579.

copied from iij/mruby.