test case for issue #7 of dsjslib