added test that reproduces Issue #1017