Here are a few tips when testing baked goods for doneness.
Doneness is usually gauged by color. Baked only until pale blond, pastry is less than crisp and has a floury taste. When baked until a deep nut-brown—which is our preference—the flavor is fuller and the texture is crisp and flaky.
A cake tester or skewer inserted into the center of the item should come out clean. If batter clings to the tester or skewer, the baked good needs more time in the oven. Fully baked, cakes, muffins, and quick breads will feel springy and resilient when the center is gently pressed with fingers. If an impression is left in the surface, the item is not done.
For a soft, chewy texture, cookies are best removed from the oven when they appear to be a bit underbaked. Cooling the sheet of cookies for a few minutes on a rack allows them to set slightly.