Add test for bug #23