AUC, It looks like if you leave and return to St Martin through Marigot that you don't need a Test at all, if you are fully vaccinated. Based upon this information, if it was me, I'd leave through Marigot and return through Marigot since I am fully vaccinated. If you do a round trip ticket with either service, it is significantly cheaper than purchasing 2 one-way tickets. I have posted the relevant information below and it is right from the Marigot Ferry's website.
Special HEALTH requirements between St Martin Marigot and St Barth (both ways), August 5, 2021 update:
• Proof of Covid Vaccination is Ok to travel
• For non vaccinated passengers (12 years and more), 2 conditions to respect to travel:
Covid Test (negative 48 hour antigenic or 72 hours Pcr)
and Compelling reason