Adding test for bug 1024