Add test for bug #22.