Goodness-of-Fit Test for Mismatched Self-Exciting Processes