Test with toothpick. It should pull out clean or with a few wet crumbs. (If top is browning quicker than center is baking, lay a piece of foil on top to prevent over-browning.)
Run a clean knife around the edges and allow to cool down before turning out of pan.