add: test case for issue #396