A Robust Protocol for Self-Testing Majorana Fermions