>But consider data modified
This is why we never modify data but create new data. Data must be immutable. Strictly typed. Always in the form it is expected to be. Otherwise - crash immediatelly.
>But later someone introduced
This is why we write integration tests. Introducing anything without tests is only guesswork.