You can check if the pistachio cake is done by inserting a toothpick into the center. If it reveals a clean toothpick, the cake is done. If you find wet batter clinging to it, bake for a few more minutes and then test again.