Adding test for #1024