Add regression test file for bug #1057