If the one tested with is not the real dad, he’ll be marked as not the dad, but since there’s still 2+ possibilities, the Sim still doesn’t know who is the real dad.
Everything else in the system is added code by me. The game ALWAYS knows how exactly is the dad. My mod does not make it up, but grab that info from the game.