wrote a test for #229