minimal test case for reproducing #2669