You may have baked it too long. Cakes continue to bake as they are cooling. Next time, bake just until the cake tester comes out clean.