Test for bug #3485.