Adding test for bug #3248.