Added test for bug #47.