Then layer all of the vegetables on top of the pastry. I put the courgette and beetroot on the base, then sprinkled over the mushrooms and onion. Add dollops of pesto over the vegetables and top with finely grated Parmesan. Finally, brush the pastry boarders with beaten egg.