Add minimal test case to reproduce the hang