Unit test for #211