Potato, courgette, and pesto tart