unit test for issue #20