Test case for #21.
Fix #21.