unit test for issue #21