Test case for bug 876249