Test case for https://labs.riseup.net/code/issues/1187