add test for issue #38