tests: added test for issue #39