Test case for #22.