Although not a perfect test, your senses are usually the most reliable instruments to tell if your cake or any dessert has gone bad. Some common traits are a hard and dry texture as the moisture evaporates. Sometimes mold can appear, shrunken and cracked, and in dairy, it may taste a bit of sour milk.