Add a test case for the problem fixed by the previous commit. FossilOrigin-Name: e899b058a703158012c054974bd9a909d75144d8