Obviously you had to fix the bug. But what I asked was whether the existing tests would have caught the bug.  If not, you could improve the tests.