Regression test for #618

Test for #618. botio seems to have a hard time with this test, but work fine locally.