testcase to reproduce tez-1494