added a separate test for the previous bug scenario