wrote a test for #237

If this test passes then close the issue