Unit test for #22