In a separate large bowl, whisktogether the flour, cocoa powder, baking soda, baking powder, and salt. Add half of the flour mixture to the chocolate mixture and stir in 1/4 cup of the milk. Add the remaining flour mixture and milk and mix. Pour the batter into pan and smooth the top with a spatula. Arrange the pear slices in a circle on top.