Even before they mentioned DNA testing I was all, “If they send that thing for DNA testing and it comes back saying it’s Kathryn’s, no way am I believing it.” Regina has control over all that paperwork in that town and can make it say anything she pleases.
Definitely think it was figurative “magic” he was talking about. He had her stashed somewhere and planted her so she’d be found exactly when he wanted her to be.