Added testing for bug #7591.