Added test for previous bug