unit test for issue #37