Adding test in attempt to reproduce #1079