Fix a bug and write a test for it.
Add a little more test code.
More test, just to be thorough.
Mention about the fix in NEWS.