Adding a test for bug #2428.