add test to verify fix in issue #409