add test case for issue #394.