add a test for the previous bug