add test for issue 1035