M5 completes successful sail trials