Adding regression test for Bug#4077.