unit test for issue #24