Test case for #31.